package net.hn.hnms.biz.support.group.controller.open;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import net.hn.hnms.biz.support.group.domain.MineNowAlarmVo;
import net.hn.hnms.biz.support.service.SupportService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 集团端-顶板支架
 */
@Api(value = "华能集团-openFein", tags = {"集团端-openFein"})
@RestController
@RequestMapping("/open/group/roof")
public class SupportController {
    @Resource
    private SupportService supportService;

    /**
     * 获取公司端煤矿实时报警数
     */
    @ApiOperation("获取公司端煤矿支架实时报警数")
    @GetMapping("nowAlarm")
    public List<MineNowAlarmVo> nowAlarm(@ApiParam(value = "煤矿编码") String mineCode, @ApiParam(value = "公司编码") String companyCode) {
        List<MineNowAlarmVo>  mineNowAlarmVoList= supportService.nowAlarm(mineCode,companyCode);
        return mineNowAlarmVoList;
    }
}
